/**
  ******************************************************************************
  * @file           : Task_config.c
  * @brief          : User should configure and deploy task in this file.
  *                  
  ******************************************************************************
	*Before running your task, you should first include your headers and extern 
	 used Semaphores.
	*All tasks should be created in "creatUserTasks()"
**/


#include "Task_config.h"
/**************Semaphore and Mailbox******************/
//裁判系统的信号量
OS_SEM referee_Semaphore;

/**********************Founctions*********************/

//初始化用户模块、创建启动任务
void startup(void)
{	
	/****Initialization for moudles***/
	BSP_Init();
	dataPoolInit();
	/******Start the kernel***********/
	os_sys_init_prio(creatUserTasks,254);	
} 



//用户任务在以下函数中创建
__task void creatUserTasks(void)
{
	 semaphoreMbxInit();
	 
	/********User code begin**********/
	os_tsk_create(referee_service,3);
	/********User code end  **********/
	os_tsk_delete_self();
}











void semaphoreMbxInit(void)
{
	os_sem_init(&referee_Semaphore,0);
}



